package androidx.viewpager.widget;

import android.graphics.Rect;
import android.view.View;
import androidx.core.view.ViewCompat;
import o.hx;
import o.ij;

class ViewPager$3 implements hx {
    private final Rect ˋ = new Rect();
    final /* synthetic */ ViewPager ˎ;

    ViewPager$3(ViewPager viewPager) {
        this.ˎ = viewPager;
    }

    public ij ˋ(View view, ij ijVar) {
        ij ˊ = ViewCompat.ˊ(view, ijVar);
        if (ˊ.ᐝ()) {
            return ˊ;
        }
        Rect rect = this.ˋ;
        rect.left = ˊ.ˏ();
        rect.top = ˊ.ˎ();
        rect.right = ˊ.ˋ();
        rect.bottom = ˊ.ˊ();
        int childCount = this.ˎ.getChildCount();
        for (int i = 0; i < childCount; i++) {
            ij ॱ = ViewCompat.ॱ(this.ˎ.getChildAt(i), ˊ);
            rect.left = Math.min(ॱ.ˏ(), rect.left);
            rect.top = Math.min(ॱ.ˎ(), rect.top);
            rect.right = Math.min(ॱ.ˋ(), rect.right);
            rect.bottom = Math.min(ॱ.ˊ(), rect.bottom);
        }
        return ˊ.ˎ(rect.left, rect.top, rect.right, rect.bottom);
    }
}
